.class public Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field public final a:I

.field public b:Ljava/lang/String;

.field public c:Landroid/os/Handler;

.field private d:Landroid/app/Activity;

.field private e:Landroid/view/View;

.field private f:Landroid/widget/ImageView;

.field private g:Landroid/widget/TextView;

.field private h:Landroid/widget/TextView;

.field private i:Landroid/widget/TextView;

.field private j:Landroid/widget/TextView;

.field private k:Landroid/widget/TextView;

.field private l:Landroid/widget/TextView;

.field private m:Landroid/widget/TextView;

.field private n:Landroid/widget/TextView;

.field private o:Landroid/widget/LinearLayout;

.field private p:Ljava/util/List;

.field private q:Ljava/util/List;

.field private r:Lcom/waiqin365/base/print/r;

.field private s:Lcom/waiqin365/base/print/r;

.field private t:I

.field private u:I


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/16 v0, 0x123

    iput v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->a:I

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->b:Ljava/lang/String;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->p:Ljava/util/List;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->q:Ljava/util/List;

    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->t:I

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->u:I

    new-instance v0, Lcom/waiqin365/h5/wqbluetooth/acty/a;

    invoke-direct {v0, p0}, Lcom/waiqin365/h5/wqbluetooth/acty/a;-><init>(Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;)V

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->c:Landroid/os/Handler;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;)Landroid/app/Activity;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->d:Landroid/app/Activity;

    return-object v0
.end method

.method private a(Lcom/waiqin365/h5/wqbluetooth/a/a;Landroid/widget/TextView;)V
    .locals 2

    iget-object v0, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "center"

    iget-object v1, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/16 v0, 0x11

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setGravity(I)V

    :goto_0
    iget-object v0, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    const-string/jumbo v0, "1"

    iget-object v1, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/high16 v0, 0x41880000    # 17.0f

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setTextSize(F)V

    :goto_1
    const-string/jumbo v0, "#333333"

    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setTextColor(I)V

    return-void

    :cond_0
    iget-object v0, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string/jumbo v0, "right"

    iget-object v1, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x5

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setGravity(I)V

    goto :goto_0

    :cond_1
    const/4 v0, 0x3

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setGravity(I)V

    goto :goto_0

    :cond_2
    const/high16 v0, 0x41500000    # 13.0f

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setTextSize(F)V

    goto :goto_1
.end method

.method private a(Lcom/waiqin365/h5/wqbluetooth/a/a;[Ljava/lang/String;)V
    .locals 7

    const/4 v6, 0x1

    const/4 v1, 0x0

    move v0, v1

    :goto_0
    array-length v2, p2

    if-ge v0, v2, :cond_1

    aget-object v2, p2, v0

    const-string/jumbo v3, "<n>"

    const-string/jumbo v4, "\n"

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "<_>"

    const-string/jumbo v4, " "

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "<\uff3f>"

    const-string/jumbo v4, "\u3000"

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "<->"

    iget-object v4, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->s:Lcom/waiqin365/base/print/r;

    iget v5, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->t:I

    invoke-virtual {v4, v5}, Lcom/waiqin365/base/print/r;->a(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "<S_E>"

    invoke-virtual {v2, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v3

    if-lez v3, :cond_0

    const-string/jumbo v3, "<S_E>"

    invoke-virtual {v2, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_0

    array-length v4, v3

    if-le v4, v6, :cond_0

    iget-object v2, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->s:Lcom/waiqin365/base/print/r;

    aget-object v4, v3, v1

    aget-object v3, v3, v6

    invoke-virtual {v2, v4, v3}, Lcom/waiqin365/base/print/r;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :cond_0
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->a:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->a:Ljava/lang/String;

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method private a(Lorg/json/JSONArray;IZ)V
    .locals 5

    :try_start_0
    invoke-virtual {p1, p2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v1

    new-instance v2, Lcom/waiqin365/h5/wqbluetooth/a/a;

    invoke-direct {v2}, Lcom/waiqin365/h5/wqbluetooth/a/a;-><init>()V

    new-instance v3, Lcom/waiqin365/h5/wqbluetooth/a/a;

    invoke-direct {v3}, Lcom/waiqin365/h5/wqbluetooth/a/a;-><init>()V

    const-string/jumbo v0, "font"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string/jumbo v0, "font"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_0
    iput-object v0, v2, Lcom/waiqin365/h5/wqbluetooth/a/a;->b:Ljava/lang/String;

    const-string/jumbo v0, "font"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_3

    const-string/jumbo v0, "font"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_1
    iput-object v0, v3, Lcom/waiqin365/h5/wqbluetooth/a/a;->b:Ljava/lang/String;

    const-string/jumbo v0, "alignment"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    const-string/jumbo v0, "alignment"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_2
    iput-object v0, v2, Lcom/waiqin365/h5/wqbluetooth/a/a;->c:Ljava/lang/String;

    const-string/jumbo v0, "alignment"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    const-string/jumbo v0, "alignment"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_3
    iput-object v0, v3, Lcom/waiqin365/h5/wqbluetooth/a/a;->c:Ljava/lang/String;

    const-string/jumbo v0, "name"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_9

    const-string/jumbo v0, "name"

    invoke-virtual {v1, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_4
    const-string/jumbo v1, "<n>"

    const-string/jumbo v4, "<n>~!@#"

    invoke-virtual {v0, v1, v4}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v0

    const-string/jumbo v1, "~!@#"

    invoke-virtual {v0, v1}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    array-length v1, v0

    if-lez v1, :cond_0

    invoke-direct {p0, v2, v0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->a(Lcom/waiqin365/h5/wqbluetooth/a/a;[Ljava/lang/String;)V

    invoke-direct {p0, v3, v0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->b(Lcom/waiqin365/h5/wqbluetooth/a/a;[Ljava/lang/String;)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, -0x1

    const/4 v4, -0x2

    invoke-direct {v0, v1, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    new-instance v1, Landroid/widget/TextView;

    iget-object v4, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->d:Landroid/app/Activity;

    invoke-direct {v1, v4}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    if-eqz p3, :cond_a

    invoke-direct {p0, v2, v1}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->b(Lcom/waiqin365/h5/wqbluetooth/a/a;Landroid/widget/TextView;)V

    iget-object v4, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->p:Ljava/util/List;

    invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    :goto_5
    iget-object v2, v2, Lcom/waiqin365/h5/wqbluetooth/a/a;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v2, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->o:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v1, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    :cond_0
    :goto_6
    return-void

    :cond_1
    if-eqz p3, :cond_2

    const-string/jumbo v0, "1"

    goto/16 :goto_0

    :cond_2
    const-string/jumbo v0, "0"

    goto/16 :goto_0

    :cond_3
    if-eqz p3, :cond_4

    const-string/jumbo v0, "1"

    goto/16 :goto_1

    :cond_4
    const-string/jumbo v0, "0"

    goto/16 :goto_1

    :cond_5
    if-eqz p3, :cond_6

    const-string/jumbo v0, "center"

    goto :goto_2

    :cond_6
    const-string/jumbo v0, "left"

    goto/16 :goto_2

    :cond_7
    if-eqz p3, :cond_8

    const-string/jumbo v0, "center"

    goto :goto_3

    :cond_8
    const-string/jumbo v0, "left"

    goto :goto_3

    :cond_9
    const-string/jumbo v0, ""

    goto :goto_4

    :cond_a
    invoke-direct {p0, v2, v1}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->a(Lcom/waiqin365/h5/wqbluetooth/a/a;Landroid/widget/TextView;)V

    iget-object v4, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->q:Ljava/util/List;

    invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_5

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_6
.end method

.method static synthetic b(Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->p:Ljava/util/List;

    return-object v0
.end method

.method private b()V
    .locals 1

    new-instance v0, Lcom/waiqin365/h5/wqbluetooth/acty/b;

    invoke-direct {v0, p0}, Lcom/waiqin365/h5/wqbluetooth/acty/b;-><init>(Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;)V

    invoke-virtual {v0}, Lcom/waiqin365/h5/wqbluetooth/acty/b;->start()V

    return-void
.end method

.method private b(Lcom/waiqin365/h5/wqbluetooth/a/a;Landroid/widget/TextView;)V
    .locals 2

    iget-object v0, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string/jumbo v0, "left"

    iget-object v1, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x3

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setGravity(I)V

    :goto_0
    iget-object v0, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->b:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_2

    const-string/jumbo v0, "0"

    iget-object v1, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/high16 v0, 0x41500000    # 13.0f

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setTextSize(F)V

    :goto_1
    const-string/jumbo v0, "#1a1a1a"

    invoke-static {v0}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v0

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setTextColor(I)V

    return-void

    :cond_0
    iget-object v0, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->c:Ljava/lang/String;

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    const-string/jumbo v0, "right"

    iget-object v1, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x5

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setGravity(I)V

    goto :goto_0

    :cond_1
    const/16 v0, 0x11

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setGravity(I)V

    goto :goto_0

    :cond_2
    const/high16 v0, 0x41880000    # 17.0f

    invoke-virtual {p2, v0}, Landroid/widget/TextView;->setTextSize(F)V

    goto :goto_1
.end method

.method private b(Lcom/waiqin365/h5/wqbluetooth/a/a;[Ljava/lang/String;)V
    .locals 7

    const/4 v6, 0x1

    const/4 v1, 0x0

    move v0, v1

    :goto_0
    array-length v2, p2

    if-ge v0, v2, :cond_1

    aget-object v2, p2, v0

    const-string/jumbo v3, "<n>"

    const-string/jumbo v4, "\n"

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "<_>"

    const-string/jumbo v4, " "

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "<\uff3f>"

    const-string/jumbo v4, "\u3000"

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "<->"

    iget-object v4, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->r:Lcom/waiqin365/base/print/r;

    iget v5, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->t:I

    invoke-virtual {v4, v5}, Lcom/waiqin365/base/print/r;->a(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v2, v3, v4}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v2

    const-string/jumbo v3, "<S_E>"

    invoke-virtual {v2, v3}, Ljava/lang/String;->indexOf(Ljava/lang/String;)I

    move-result v3

    if-lez v3, :cond_0

    const-string/jumbo v3, "<S_E>"

    invoke-virtual {v2, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v3

    if-eqz v3, :cond_0

    array-length v4, v3

    if-le v4, v6, :cond_0

    iget-object v2, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->r:Lcom/waiqin365/base/print/r;

    aget-object v4, v3, v1

    aget-object v3, v3, v6

    invoke-virtual {v2, v4, v3}, Lcom/waiqin365/base/print/r;->a(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    :cond_0
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->a:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    iput-object v2, p1, Lcom/waiqin365/h5/wqbluetooth/a/a;->a:Ljava/lang/String;

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_1
    return-void
.end method

.method static synthetic c(Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;)Ljava/util/List;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->q:Ljava/util/List;

    return-object v0
.end method

.method private c()V
    .locals 7

    const/4 v6, 0x1

    const/4 v2, 0x0

    const/4 v1, 0x0

    new-instance v0, Lcom/waiqin365/h5/wqbluetooth/a/a;

    invoke-direct {v0}, Lcom/waiqin365/h5/wqbluetooth/a/a;-><init>()V

    const-string/jumbo v3, "\n"

    iput-object v3, v0, Lcom/waiqin365/h5/wqbluetooth/a/a;->a:Ljava/lang/String;

    const-string/jumbo v3, "left"

    iput-object v3, v0, Lcom/waiqin365/h5/wqbluetooth/a/a;->c:Ljava/lang/String;

    const-string/jumbo v3, "0"

    iput-object v3, v0, Lcom/waiqin365/h5/wqbluetooth/a/a;->b:Ljava/lang/String;

    iget-object v3, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->q:Ljava/util/List;

    invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-virtual {p0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v3, "jsonContent"

    invoke-virtual {v0, v3}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :try_start_0
    new-instance v5, Lorg/json/JSONObject;

    invoke-direct {v5, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    if-eqz v5, :cond_7

    const-string/jumbo v0, "head"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    const-string/jumbo v0, "head"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_1

    move-result-object v4

    :goto_0
    if-eqz v5, :cond_6

    :try_start_1
    const-string/jumbo v0, "body"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_6

    const-string/jumbo v0, "body"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_2

    move-result-object v3

    :goto_1
    if-eqz v5, :cond_0

    :try_start_2
    const-string/jumbo v0, "tail"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, "tail"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v2

    :cond_0
    const-string/jumbo v0, "width"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->has(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string/jumbo v0, "width"

    invoke-virtual {v5, v0}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    :goto_2
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v5

    if-nez v5, :cond_2

    const-string/jumbo v5, "1"

    invoke-virtual {v5, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->t:I
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_0

    :goto_3
    if-eqz v4, :cond_3

    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-lez v0, :cond_3

    move v0, v1

    :goto_4
    invoke-virtual {v4}, Lorg/json/JSONArray;->length()I

    move-result v5

    if-ge v0, v5, :cond_3

    invoke-direct {p0, v4, v0, v6}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->a(Lorg/json/JSONArray;IZ)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_4

    :cond_1
    :try_start_3
    const-string/jumbo v0, "0"

    goto :goto_2

    :cond_2
    const/4 v0, 0x0

    iput v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->t:I
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_0

    goto :goto_3

    :catch_0
    move-exception v0

    :goto_5
    invoke-virtual {v0}, Lorg/json/JSONException;->printStackTrace()V

    invoke-virtual {p0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->finish()V

    goto :goto_3

    :cond_3
    if-eqz v3, :cond_4

    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-lez v0, :cond_4

    move v0, v1

    :goto_6
    invoke-virtual {v3}, Lorg/json/JSONArray;->length()I

    move-result v4

    if-ge v0, v4, :cond_4

    invoke-direct {p0, v3, v0, v1}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->a(Lorg/json/JSONArray;IZ)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_6

    :cond_4
    if-eqz v2, :cond_5

    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v0

    if-lez v0, :cond_5

    move v0, v1

    :goto_7
    invoke-virtual {v2}, Lorg/json/JSONArray;->length()I

    move-result v3

    if-ge v0, v3, :cond_5

    invoke-direct {p0, v2, v0, v1}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->a(Lorg/json/JSONArray;IZ)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_7

    :cond_5
    return-void

    :catch_1
    move-exception v0

    move-object v3, v2

    move-object v4, v2

    goto :goto_5

    :catch_2
    move-exception v0

    move-object v3, v2

    goto :goto_5

    :cond_6
    move-object v3, v2

    goto/16 :goto_1

    :cond_7
    move-object v4, v2

    goto/16 :goto_0
.end method

.method static synthetic d(Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;)I
    .locals 1

    iget v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->u:I

    return v0
.end method


# virtual methods
.method public a()V
    .locals 4

    const/4 v3, -0x2

    const/4 v2, 0x0

    const v0, 0x7f0c0ef7

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->e:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->e:Landroid/view/View;

    const v1, 0x7f0c01da

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->f:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->f:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->e:Landroid/view/View;

    const v1, 0x7f0c0303

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->g:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->e:Landroid/view/View;

    const v1, 0x7f0c0305

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->h:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->h:Landroid/widget/TextView;

    const v1, 0x7f080664

    invoke-virtual {p0, v1}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->e:Landroid/view/View;

    const v1, 0x7f0c0309

    invoke-virtual {v0, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->i:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->i:Landroid/widget/TextView;

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v0, v3, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    const/high16 v1, 0x41400000    # 12.0f

    invoke-static {p0, v1}, Lcom/fiberhome/gaea/client/d/k;->b(Landroid/content/Context;F)I

    move-result v1

    invoke-virtual {v0, v2, v2, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;->setMargins(IIII)V

    iget-object v1, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->i:Landroid/widget/TextView;

    invoke-virtual {v1, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->i:Landroid/widget/TextView;

    const v1, 0x7f020444

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->i:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0ef8

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0ef9

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0efa

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0efb

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0efc

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0efd

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/LinearLayout;

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->o:Landroid/widget/LinearLayout;

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 3

    const v2, 0x7f020381

    const v1, 0x7f02039c

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->back()V

    goto :goto_0

    :sswitch_1
    invoke-direct {p0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->b()V

    goto :goto_0

    :sswitch_2
    const/4 v0, 0x1

    iput v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->u:I

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    const-string/jumbo v1, "#ffffff"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto :goto_0

    :sswitch_3
    const/4 v0, 0x2

    iput v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->u:I

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    const-string/jumbo v1, "#ffffff"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto/16 :goto_0

    :sswitch_4
    const/4 v0, 0x3

    iput v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->u:I

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    const-string/jumbo v1, "#ffffff"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto/16 :goto_0

    :sswitch_5
    const/4 v0, 0x4

    iput v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->u:I

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    const-string/jumbo v1, "#ffffff"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto/16 :goto_0

    :sswitch_6
    const/4 v0, 0x5

    iput v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->u:I

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->j:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->k:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->l:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->m:Landroid/widget/TextView;

    const-string/jumbo v1, "#676767"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->n:Landroid/widget/TextView;

    const-string/jumbo v1, "#ffffff"

    invoke-static {v1}, Landroid/graphics/Color;->parseColor(Ljava/lang/String;)I

    move-result v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

    goto/16 :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c01da -> :sswitch_0
        0x7f0c0303 -> :sswitch_0
        0x7f0c0309 -> :sswitch_1
        0x7f0c0ef8 -> :sswitch_2
        0x7f0c0ef9 -> :sswitch_3
        0x7f0c0efa -> :sswitch_4
        0x7f0c0efb -> :sswitch_5
        0x7f0c0efc -> :sswitch_6
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 2

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f0302e1

    invoke-virtual {p0, v0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->setContentView(I)V

    iput-object p0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->d:Landroid/app/Activity;

    new-instance v0, Lcom/waiqin365/base/print/r;

    iget-object v1, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->d:Landroid/app/Activity;

    invoke-direct {v0, v1}, Lcom/waiqin365/base/print/r;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->s:Lcom/waiqin365/base/print/r;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->s:Lcom/waiqin365/base/print/r;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/print/r;->a(Z)V

    new-instance v0, Lcom/waiqin365/base/print/r;

    iget-object v1, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->d:Landroid/app/Activity;

    invoke-direct {v0, v1}, Lcom/waiqin365/base/print/r;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->r:Lcom/waiqin365/base/print/r;

    iget-object v0, p0, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->r:Lcom/waiqin365/base/print/r;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/waiqin365/base/print/r;->a(Z)V

    invoke-virtual {p0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/h5/wqbluetooth/acty/H5PrintPreviewActivity;->c()V

    return-void
.end method
